<!DOCTYPE html>
<head xmlns:v-bind="http://www.w3.org/1999/xhtml" >
    <meta charset="UTF-8">
    <title>demo5模板语法-缩写</title>
  <script src="./js/vue.min.js"></script>

</head>

<body>
   <div id="app">
     <a :href="url">简单的使用</a>
     <a @click="doSomething">调用功能函数</a>
   </div>
   <script type="application/javascript">
     var vm = new Vue({
       el: "#app",
       data: {
         url: "http://www.baidu.com"
       },
       methods: {
         doSomething: function () {
           alert("it's ok?");
         }
       }
     });


   </script>
</body>

</html>
